const controllers = require("../controllers/upload");
const authorization = require('../middleware/authorization');
const adminAuthorization = require('../middleware/adminAuthorization');
let upload = require("../upload");
module.exports = router => {
    // router.prefix('/');
    router.post('/admin/upload', adminAuthorization(), upload.single('file'), controllers.upload);
};
